<%
  if( "true".equals( request.getParameter( "disconnect" ) ) ) {
   session.invalidate();
   response.sendRedirect( request.getContextPath() + "/" );
   return;
   }
  final String userlogin = request.getRemoteUser();

//  if( userlogin == null ) {
        response.sendRedirect( response.encodeURL( request.getContextPath() + "/c/" ) );
//  }
//  else { // connected as userlogin
//    response.sendRedirect( response.encodeURL(request.getContextPath() + "/connected.jsp?connected=true" ) );
//    }
%>

